package com.generator.persistence;

public interface EpochPersistence {

    /**
     * 加载epoch
     * @return 最新epoch
     */
    long loadEpoch();

    /**
     * 升级并返回最新epoch
     * @return 最新epoch
     */
    boolean upgradeEpoch(long newEpoch);
}
